package com.transac.demo.controller;

import com.transac.demo.service.TransactionMandatoryService;
import com.transac.demo.service.TransactionMandatoryServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/")
public class TestMandatoryController {
    @Autowired
    TransactionMandatoryService transactionMandatoryService;

    @PostMapping("/testMandatory1")
    @ResponseBody
    public void testMandatory1() {
        transactionMandatoryService.updateMoney1();
    }

    @PostMapping("/testMandatory2")
    @ResponseBody
    public void testMandatory2() {
        transactionMandatoryService.updateMoney2();
    }

    @PostMapping("/testMandatory3")
    @ResponseBody
    public void testMandatory3() {
        transactionMandatoryService.updateMoney3();
    }

    @PostMapping("/testMandatory4")
    @ResponseBody
    public void testMandatory4() {
        transactionMandatoryService.updateMoney4();
    }

    @PostMapping("/testMandatory5")
    @ResponseBody
    public void testMandatory5() {
        transactionMandatoryService.updateMoney5();
    }
}
